package com.neuedu.object;

class Base {
	int i = 99;

	public void amethod() {
		System.out.println("Base.amethod() ");
	}

	Base() {
		amethod();
	}

/*	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}*/
	
}

public class Derived extends Base {
	int i = -1;

	public static void main(String argv[]) {
		Base b = new Derived();
		
		System.out.print(b.i);
		b.amethod();
	}

	public void amethod() {
		System.out.print("	Derived.amethod() ");
	}

/*	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}*/
	
}
